package com.zmj.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("student")
public class Student extends BaseEntity {


    //@TableField("student_name")
    private String studentName;

    private String subject;

    private Integer score;

    @TableField(exist = false)//不进行数据库字段映射
    private String aaaa;

    @Version //乐观锁
    private int version;

}
